function foo () {
  // ...
}

var bar = function () {
  // ...
};

var bar = function foo () {
  // ...
};

class Foo {
  constructor () {
    // ...
  }
}

var baz = {
  bar () {
    // ...
  }
};

var baz = async () => 1

function foo () {}
//output: function foo() {}

function foo /* */ () {}
//output: function foo/* */() {}

function foo/* block comment */ () {}
//output: function foo/* block comment */() {}

function foo  () {}
//output: "function foo() {}

var foo = function () {}
//output: "var foo = function() {}

var bar = function foo () {}
//output: var bar = function foo() {}

var obj = { get foo () {}, set foo (val) {} };
//output: var obj = { get foo() {}, set foo(val) {} };

var obj = { foo () {} };
//output: var obj = { foo() {} };

function* foo () {}
//output: function* foo() {}

async () => 1
// output: async() => 1